from django.contrib import admin
from django.urls import path, include
from rest_framework.routers import SimpleRouter
from . import views

router = SimpleRouter()
#api/v1/order/pay----->post请求---》生成订单，返回支付连接
router.register('pay', views.OrderViewSet, 'pay')
urlpatterns = [
    path('success/', views.AliPayView.as_view()),
]

urlpatterns += router.urls
